package cn.wgx.common.entity.mind;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@TableName("mind_pro_user")
public class ProjectUser  extends MindBaseEntity implements Serializable {

    @TableId(type = IdType.AUTO)
    @NotNull(groups = UpdateWrapper.class)
    private Integer pu_id;
    @NotNull
    private Integer pro_id;
    @NotNull
    private Integer user_id;
    @NotNull
    private Integer pro_role_id;

    @TableField(exist = false)
    private String nickname;

}
